﻿<%@ Page Title="" Language="C#" MasterPageFile="~/CRMMaster.Master" AutoEventWireup="true" CodeBehind="CustomerAccount.aspx.cs" Inherits="FinalCRM.CustomerAccount" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxTabControl" tagprefix="dx" %>
<%@ Register assembly="DevExpress.Web.v11.1, Version=11.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxClasses" tagprefix="dx" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>
<%@ Register assembly="DevExpress.Web.ASPxEditors.v11.1, Version=11.1.9.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" namespace="DevExpress.Web.ASPxEditors" tagprefix="dx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <dx:ASPxPageControl ID="ASPxPageControl1" runat="server" ActiveTabIndex="0" 
        CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" Height="308px" 
        onactivetabchanged="ASPxPageControl1_ActiveTabChanged" 
        SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css" TabSpacing="3px" 
        Width="626px" onactivetabchanged="ASPxPageControl1_ActiveTabChanged">
        <TabPages>
            <dx:TabPage Name="CreateCustomerAccountTap" Text="Create Customer Account">
                <ContentCollection>
                    <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                        Account ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txtCreateCustomerAccountAccountID" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Company Name&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txtCreateCustomerAccountCompanyName" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Billing Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txtCustomerAccountBillingAddress" runat="server" 
                            TextMode="MultiLine"></asp:TextBox>
                        <br />
                        <br />
                        Shipping Address&nbsp;
                        <asp:TextBox ID="txtCreateCustomerAccountShippingAddress" runat="server" 
                            TextMode="MultiLine"></asp:TextBox>
                        <br />
                        <br />
                        Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txtCreateCustomerAccountEmail" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Contact No&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txtCreateCustomerAccountContactNo" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Customer ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txtCreateCustomerAccountCustomerID" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txtCreateCustomerAccountDescription" runat="server" 
                            TextMode="MultiLine"></asp:TextBox>
                        <br />
                        <br />
                        Gender&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:DropDownList ID="ddlCreateUserAccountGender" runat="server">
                            <asp:ListItem>Male</asp:ListItem>
                            <asp:ListItem>Female</asp:ListItem>
                        </asp:DropDownList>
                        <br />
                        <br />
                        Date Of Birth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <dx:ASPxTimeEdit ID="CreateCustomerAccountTE" runat="server" 
                            CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                            SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
                            <SpinButtons>
                                <IncrementImage>
                                    <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditIncrementImageHover_Aqua" 
                                        PressedCssClass="dxEditors_edtSpinEditIncrementImagePressed_Aqua" />
                                </IncrementImage>
                                <DecrementImage>
                                    <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditDecrementImageHover_Aqua" 
                                        PressedCssClass="dxEditors_edtSpinEditDecrementImagePressed_Aqua" />
                                </DecrementImage>
                            </SpinButtons>
                        </dx:ASPxTimeEdit>
                        <br />
                        User Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="txtCreateCustomerAccountUserName" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        <br />
                        <asp:Button ID="btnCustomerAccountCreate" runat="server" 
                            OnClick="btnCustomerAccountCreate_Click" Text="Create" />
                    </dx:ContentControl>
                </ContentCollection>
            </dx:TabPage>
            <dx:TabPage Name="ViewCustomerAccountTap" Text="View Customer Account">
                <ContentCollection>
                    <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                        <br />
                        Account ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox10" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Company Name&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox11" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Billing Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox12" runat="server" TextMode="MultiLine"></asp:TextBox>
                        <br />
                        <br />
                        Shipping Address&nbsp;
                        <asp:TextBox ID="TextBox13" runat="server" TextMode="MultiLine"></asp:TextBox>
                        <br />
                        <br />
                        Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox14" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Contact No&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox15" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Customer ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox16" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox17" runat="server" TextMode="MultiLine"></asp:TextBox>
                        <br />
                        <br />
                        Gender&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:DropDownList ID="ddlCreateUserAccountGender0" runat="server">
                            <asp:ListItem>Male</asp:ListItem>
                            <asp:ListItem>Female</asp:ListItem>
                        </asp:DropDownList>
                        <br />
                        <br />
                        Date Of Birth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <dx:ASPxTimeEdit ID="ASPxTimeEdit2" runat="server" 
                            CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                            SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
                            <SpinButtons>
                                <IncrementImage>
                                    <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditIncrementImageHover_Aqua" 
                                        PressedCssClass="dxEditors_edtSpinEditIncrementImagePressed_Aqua" />
                                </IncrementImage>
                                <DecrementImage>
                                    <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditDecrementImageHover_Aqua" 
                                        PressedCssClass="dxEditors_edtSpinEditDecrementImagePressed_Aqua" />
                                </DecrementImage>
                            </SpinButtons>
                        </dx:ASPxTimeEdit>
                        <br />
                        User Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox18" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        <br />
                        <asp:Button ID="btnViewCustomerAccount" runat="server" Text="View" />
                    </dx:ContentControl>
                </ContentCollection>
            </dx:TabPage>
            <dx:TabPage Name="Update Customer Account Tap" Text="Update Customer Account">
                <ContentCollection>
                    <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                        <br />
                        Account ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:DropDownList ID="ddlUpdateCustomerAccountAccountID" runat="server">
                        </asp:DropDownList>
                        <br />
                        <br />
                        Company Name&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox20" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Billing Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox21" runat="server" TextMode="MultiLine"></asp:TextBox>
                        <br />
                        <br />
                        Shipping Address&nbsp;
                        <asp:TextBox ID="TextBox22" runat="server" TextMode="MultiLine"></asp:TextBox>
                        <br />
                        <br />
                        Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox23" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Contact No&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox24" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Customer ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox25" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox26" runat="server" TextMode="MultiLine"></asp:TextBox>
                        <br />
                        <br />
                        Gender&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:DropDownList ID="ddlCreateUserAccountGender1" runat="server">
                            <asp:ListItem>Male</asp:ListItem>
                            <asp:ListItem>Female</asp:ListItem>
                        </asp:DropDownList>
                        <br />
                        <br />
                        Date Of Birth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <dx:ASPxTimeEdit ID="ASPxTimeEdit3" runat="server" 
                            CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                            SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
                            <SpinButtons>
                                <IncrementImage>
                                    <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditIncrementImageHover_Aqua" 
                                        PressedCssClass="dxEditors_edtSpinEditIncrementImagePressed_Aqua" />
                                </IncrementImage>
                                <DecrementImage>
                                    <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditDecrementImageHover_Aqua" 
                                        PressedCssClass="dxEditors_edtSpinEditDecrementImagePressed_Aqua" />
                                </DecrementImage>
                            </SpinButtons>
                        </dx:ASPxTimeEdit>
                        <br />
                        User Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox27" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        <br />
                        <asp:Button ID="btnCustomerAccountCreate1" runat="server" Text="Create" />
                    </dx:ContentControl>
                </ContentCollection>
            </dx:TabPage>
            <dx:TabPage Name="DeleteCustomerAccountTap" Text="Delete Customer Account">
                <ContentCollection>
                    <dx:ContentControl runat="server" SupportsDisabledAttribute="True">
                        Account ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox28" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Company Name&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox29" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Billing Address&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox30" runat="server" TextMode="MultiLine"></asp:TextBox>
                        <br />
                        <br />
                        Shipping Address&nbsp;
                        <asp:TextBox ID="TextBox31" runat="server" TextMode="MultiLine"></asp:TextBox>
                        <br />
                        <br />
                        Email&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox32" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Contact No&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox33" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Customer ID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox34" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        Description&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox35" runat="server" TextMode="MultiLine"></asp:TextBox>
                        <br />
                        <br />
                        Gender&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:DropDownList ID="ddlCreateUserAccountGender2" runat="server">
                            <asp:ListItem>Male</asp:ListItem>
                            <asp:ListItem>Female</asp:ListItem>
                        </asp:DropDownList>
                        <br />
                        <br />
                        Date Of Birth&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <dx:ASPxTimeEdit ID="ASPxTimeEdit4" runat="server" 
                            CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" 
                            SpriteCssFilePath="~/App_Themes/Aqua/{0}/sprite.css">
                            <SpinButtons>
                                <IncrementImage>
                                    <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditIncrementImageHover_Aqua" 
                                        PressedCssClass="dxEditors_edtSpinEditIncrementImagePressed_Aqua" />
                                </IncrementImage>
                                <DecrementImage>
                                    <SpriteProperties HottrackedCssClass="dxEditors_edtSpinEditDecrementImageHover_Aqua" 
                                        PressedCssClass="dxEditors_edtSpinEditDecrementImagePressed_Aqua" />
                                </DecrementImage>
                            </SpinButtons>
                        </dx:ASPxTimeEdit>
                        <br />
                        User Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:TextBox ID="TextBox36" runat="server"></asp:TextBox>
                        <br />
                        <br />
                        <br />
                        <asp:Button ID="btnCustomerAccountCreate2" runat="server" Text="Create" />
                    </dx:ContentControl>
                </ContentCollection>
            </dx:TabPage>
        </TabPages>
        <LoadingPanelImage Url="~/App_Themes/Aqua/Web/Loading.gif">
        </LoadingPanelImage>
        <Paddings Padding="2px" PaddingLeft="5px" PaddingRight="5px" />
        <ContentStyle>
            <Border BorderColor="#AECAF0" BorderStyle="Solid" BorderWidth="1px" />
        </ContentStyle>
    </dx:ASPxPageControl>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">
    <p>
        <asp:ObjectDataSource ID="CustomerAccountObjectDS" runat="server" 
            SelectMethod="viewCustomerList" 
            TypeName="FinalCRM.App_Code.CustomerAccountBusinessObject" 
            onselecting="CustomerAccountObjectDS_Selecting">
        </asp:ObjectDataSource>
        <asp:GridView ID="CustomerAccountGV" runat="server" AllowPaging="True" 
            AllowSorting="True" CellPadding="4" DataSourceID="CustomerAccountObjectDS" 
            ForeColor="#333333" GridLines="None">
            <AlternatingRowStyle BackColor="White" />
            <EditRowStyle BackColor="#2461BF" />
            <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
            <RowStyle BackColor="#EFF3FB" />
            <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
            <SortedAscendingCellStyle BackColor="#F5F7FB" />
            <SortedAscendingHeaderStyle BackColor="#6D95E1" />
            <SortedDescendingCellStyle BackColor="#E9EBEF" />
            <SortedDescendingHeaderStyle BackColor="#4870BE" />
        </asp:GridView>
        <br />
    </p>
</asp:Content>
